using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._GeocodingTools._Legacy
{
    /// <summary>
    /// <para>Standardize Addresses</para>
    /// <para>Standardizes the address information in a table or feature class.</para>
    /// <para>标准化表或要素类中的地址信息。</para>
    /// </summary>    
    [DisplayName("Standardize Addresses")]
    public class StandardizeAddresses : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public StandardizeAddresses()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_address_data">
        /// <para>Input Address Data</para>
        /// <para>The table or feature class containing address information that you want to standardize.</para>
        /// <para>包含要标准化的地址信息的表或要素类。</para>
        /// </param>
        /// <param name="_in_input_address_fields">
        /// <para>Input Address Fields</para>
        /// <para>The set of fields in the input table or feature class that, when concatenated, forms the address to be standardized.</para>
        /// <para>输入表或要素类中的字段集，这些字段在连接时构成要标准化的地址。</para>
        /// </param>
        /// <param name="_in_address_locator_style">
        /// <para>Address Locator Style</para>
        /// <para>The address locator style to use to standardize the address information in the input table or feature class.</para>
        /// <para>用于标准化输入表或要素类中的地址信息的地址定位器样式。</para>
        /// </param>
        /// <param name="_in_output_address_fields">
        /// <para>Output Address Fields</para>
        /// <para>The set of standardized address fields to include in the output table or feature class.</para>
        /// <para>要包含在输出表或要素类中的标准化地址字段集。</para>
        /// </param>
        /// <param name="_out_address_data">
        /// <para>Output Address Data</para>
        /// <para>The output table or feature class to create containing the standardized address fields.</para>
        /// <para>要创建的输出表或要素类，其中包含标准化地址字段。</para>
        /// </param>
        public StandardizeAddresses(object _in_address_data, List<object> _in_input_address_fields, object _in_address_locator_style, List<object> _in_output_address_fields, object _out_address_data)
        {
            this._in_address_data = _in_address_data;
            this._in_input_address_fields = _in_input_address_fields;
            this._in_address_locator_style = _in_address_locator_style;
            this._in_output_address_fields = _in_output_address_fields;
            this._out_address_data = _out_address_data;
        }
        public override string ToolboxName => "Geocoding Tools";

        public override string ToolName => "Standardize Addresses";

        public override string CallName => "geocoding.StandardizeAddresses";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_address_data, _in_input_address_fields, _in_address_locator_style, _in_output_address_fields, _out_address_data, _in_relationship_type.GetGPValue()];

        /// <summary>
        /// <para>Input Address Data</para>
        /// <para>The table or feature class containing address information that you want to standardize.</para>
        /// <para>包含要标准化的地址信息的表或要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Address Data")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_address_data { get; set; }


        /// <summary>
        /// <para>Input Address Fields</para>
        /// <para>The set of fields in the input table or feature class that, when concatenated, forms the address to be standardized.</para>
        /// <para>输入表或要素类中的字段集，这些字段在连接时构成要标准化的地址。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Address Fields")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_input_address_fields { get; set; }


        /// <summary>
        /// <para>Address Locator Style</para>
        /// <para>The address locator style to use to standardize the address information in the input table or feature class.</para>
        /// <para>用于标准化输入表或要素类中的地址信息的地址定位器样式。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Address Locator Style")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_address_locator_style { get; set; }


        /// <summary>
        /// <para>Output Address Fields</para>
        /// <para>The set of standardized address fields to include in the output table or feature class.</para>
        /// <para>要包含在输出表或要素类中的标准化地址字段集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Address Fields")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_output_address_fields { get; set; }


        /// <summary>
        /// <para>Output Address Data</para>
        /// <para>The output table or feature class to create containing the standardized address fields.</para>
        /// <para>要创建的输出表或要素类，其中包含标准化地址字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Address Data")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_address_data { get; set; }


        /// <summary>
        /// <para>Dynamic Output Data</para>
        /// <para><xdoc>
        ///   <para>Indicates whether to create a static or dynamic output dataset.</para>
        ///   <bulletList>
        ///     <bullet_item>Unchecked—Creates an output table or feature class that contains a copy of the rows or features in the input table and the standardized address fields. This is the default.</bullet_item><para/>
        ///     <bullet_item>Checked—Creates a table containing the standardized address fields and a relationship class that joins to the input table or feature class.
        ///     <para>The option is only active if both the input and output datasets are stored in the same geodatabase workspace.</para>
        ///     </bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指示是创建静态输出数据集还是动态输出数据集。</para>
        ///   <bulletList>
        ///     <bullet_item>未选中 - 创建输出表或要素类，其中包含输入表中的行或要素的副本以及标准化地址字段。这是默认设置。</bullet_item><para/>
        /// <bullet_item>选中 - 创建包含标准化地址字段和连接到输入表或要素类的关系类的表。
        ///     <para>仅当输入数据集和输出数据集都存储在同一地理数据库工作空间中时，该选项才处于活动状态。</para>
        ///     </bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Dynamic Output Data")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _in_relationship_type_value _in_relationship_type { get; set; } = _in_relationship_type_value._false;

        public enum _in_relationship_type_value
        {
            /// <summary>
            /// <para>Dynamic</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("Dynamic")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>Static</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("Static")]
            [GPEnumValue("false")]
            _false,

        }

        public StandardizeAddresses SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}